package com.googlecode.imanager.client.util;

import com.googlecode.imanager.client.bridge.BridgeManager;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class Utils {

    /**
     * Verify if two objects are equals with <code>null</code> check.
     * 
     * @param a
     *            an object
     * @param b
     *            an object
     * @return True if they are equals
     */
    public static boolean isEquals(Object a, Object b) {
        if (a == b) {
            return true;
        } else if (a == null) {
            return false;
        } else {
            return a.equals(b);
        }
    }

    public static Logger getLogger(Class<?> ownerClass){
        return BridgeManager.getInstance().getLogger(ownerClass);
    }
    
}
